//
//  PreferenceController.m
//  <10>Nib和NSWindowController
//
//  Created by chen on 16/9/9.
//  Copyright © 2016年 tyrad. All rights reserved.
//

#import "PreferenceController.h"

@interface PreferenceController ()

@end

@implementation PreferenceController

- (void)windowDidLoad {
    [super windowDidLoad];
    
}

- (instancetype)init
{
    self = [super initWithWindowNibName:@"Preference"];
    if (self) {
        
    }
    return self;
}



- (IBAction)changeBackgroundColor:(id)sender{
    
    NSLog(@"color = %@",_colorWell.color);
    
    self.window.backgroundColor = _colorWell.color ; 
    
}




- (IBAction)changeNewEmptyDoc:(id)sender {
    
    NSLog(@"%ld",self.button.state);
    
}




@end
